//package org.wxd.elastic.job.config;
//
//
//import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperConfiguration;
//import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class JobConfig {
//
//
//    @Value("${zk.servers}")
//    private String zkServer;
//    @Value(("${job.namespace}"))
//    private String jobNameSpace;
//
//
//    /**
//     * 初始化Zookeeper注册中心
//     * @return
//     */
//    @Bean(initMethod = "init")
//    public ZookeeperRegistryCenter zookeeperRegistryCenter() {
//        ZookeeperConfiguration zookeeperConfiguration = new ZookeeperConfiguration(zkServer,
//                jobNameSpace);
//        ZookeeperRegistryCenter center = new ZookeeperRegistryCenter(zookeeperConfiguration);
//        return center;
//    }
//
//
//
//}
